from openpyxl import Workbook
wb = Workbook()
ws = wb.active
print(ws.title)
ws.title = "7210"
ws['A1'] = "姓名"
ws['B1'] = "年龄"
ws['C1'] = "性别"
ws['A2'] = "小米"
ws['B2'] = "11"
ws['C2'] = "男"
ws['A3'] = "小红"
ws['B3'] = "33"
ws['C3'] = "女"
wb.save("7210.xlsx")
